﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using WCFMINERP.MODEL;

namespace WCFMINERP.Contracts.InterFaces
{

     [ServiceContract]
    public interface IProductServer
    {
         [WebGet(UriTemplate = "/product/Get/", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
         [OperationContract]
         /// <summary>
         /// 获取所有产品,商户,数据
         /// </summary>
         /// <returns></returns>       
         List<ShopModels> GetProduct();

         [WebGet(UriTemplate = "/products/Get/{shopid}", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
         [OperationContract]
            /// <summary>
         /// 获取所有产品,数据,根据商户查找
         /// </summary>
         /// <returns></returns>       
        List<ShopModels> GetProducts(string shopid);

         [WebGet(UriTemplate = "/getpaperface/Get/", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
         [OperationContract]
         /// <summary>
          /// 获取所有的paperFace且状态为1的
         /// </summary>
         /// <returns></returns>       
         List<PaperFaceModels> GetPaperFace();


         [WebGet(UriTemplate = "/getproduct/Get/", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
         [OperationContract]
         /// <summary>
         /// 获取所有的paperFace且状态为1的
         /// </summary>
         /// <returns></returns>       
         List<ShopModels> GetPrdouctshop();


         [WebGet(UriTemplate = "/AddPrdouctRelationship/{clientid}/{serverid}", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
         [OperationContract]
         /// <summary>
         /// 获取所有的paperFace且状态为1的
         /// </summary>
         /// <returns></returns>       
         int AddPrdouctRelationship(string clientid, string serverid);
               
    }
}
